package com.ugoodtech.mdcc.core.domain;

        /* Copyright (C) Ugoodtech, Inc - All Rights Reserved.
         * Unauthorized copying of this file, via any medium is strictly prohibited.
         * Proprietary and confidential.
         * Written by Stone Shaw.
         */

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@ApiModel("问题选项")
@Entity
@Table(name = "question_answer_options")
public class QuestionAnswerOption extends BaseEntity {
    @ApiModelProperty("问题")
    private Question question;
    @ApiModelProperty("值")
    private String value;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("带文本的补充值")
    private String extra;//带文本的补充值
    @ApiModelProperty("描述")
    private String description;
    @ApiModelProperty("是否允许填空")
    private boolean addText = false;
    @ApiModelProperty("排序")
    private Integer idx;//排序
    @ApiModelProperty("建议")
    private String advice;
    @ApiModelProperty("结果")
    private String evaluation;
    @ApiModelProperty("拥有者")
    private Integer owner;

    @ManyToOne
    @JoinColumn(name = "question_id")
    @JsonIgnore
    public Question getQuestion() {
        return question;
    }

    public void setQuestion(Question question) {
        this.question = question;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getIdx() {
        return idx;
    }

    public void setIdx(Integer idx) {
        this.idx = idx;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public boolean isAddText() {
        return addText;
    }

    public void setAddText(boolean addText) {
        this.addText = addText;
    }

    public String getAdvice() {
        return advice;
    }

    public void setAdvice(String advice) {
        this.advice = advice;
    }

    public String getEvaluation() {
        return evaluation;
    }

    public void setEvaluation(String evaluation) {
        this.evaluation = evaluation;
    }

    public Integer getOwner() {
        return owner;
    }

    public void setOwner(Integer owner) {
        this.owner = owner;
    }
}
